/*
 * @Author: your name
 * @Date: 2021-02-03 09:26:29
 * @LastEditTime: 2021-02-04 19:31:58
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \yamian-ui\src\api\dashboard\statistical.js
 */
import request from "@/utils/request";

// 查询平台数据概览
export function getPurchasesOverview() {
    return request({
        url: "/api/v1/dashboard/overview/purchases",
        method: "get"
    });
}

// 查询平台数据概览
export function getShoppingOverview() {
    return request({
        url: "/api/v1/dashboard/overview/shopping",
        method: "get"
    });
}

// 查询平台数据概览
export function getVisitsOverview() {
    return request({
        url: "/api/v1/dashboard/overview/visits",
        method: "get"
    });
}

// 查询平台数据概览
export function getActivationOverview() {
    return request({
        url: "/api/v1/dashboard/overview/activation",
        method: "get"
    });
}

export function getOverviewChart() {
    return request({
        url: "/api/v1/dashboard/overview/chart",
        method: "get"
    });
}

//
export function getChannalChart() {
    return request({
        url: "/api/v1/dashboard/overview/channelChart",
        method: "get"
    });
}

export function getChildAgeChart() {
    return request({
        url: "/api/v1/dashboard/overview/childAgeChart",
        method: "get"
    });
}
// 后台首页服务订单订单(雅眠)
export function serviceOrder() {
    return request({
        url: "/api/v1/dashboard/overview/serviceOrder",
        method: "get"
    });
}
// 充值订单订单今日未服务的已经付款(雅眠)
export function serviceOrderList(params) {
    return request({
        url: "/api/v1/dashboard/overview/serviceOrderList",
        method: "get",
        params
    });
}
// 充值订单金额
export function rechargeMoney() {
    return request({
        url: "/api/v1/dashboard/overview/vip",
        method: "get"
    });
}
// 会员总量
export function vipUser() {
    return request({
        url: "/api/v1/dashboard/overview/vipUser",
        method: "get"
    });
}

// 充值订单金额
export function getOrderInfo() {
    return request({
        url: "/api/v1/dashboard/overview/orderInfo",
        method: "get",
    });
}
